<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Modules 
{ 
    private $_ci;
	public function __construct()
	{
      $this->_ci = & get_instance();
      $this->_ci->load->model('favorites_mod');
      $this->_ci->load->model('friends_mod');
      $this->_ci->load->model('messages_mod');
      $this->_ci->load->model('pokes_mod');
      $this->_ci->load->model('users_mod');
      $this->_ci->load->model('presents_mod');
	}
    
    public function getFavorites()
    {
       return $this->_ci->favorites_mod->getMyFavorites();
    }
    
    public function getFriends()
    {       
       return $this->_ci->friends_mod->getMyFriends();
    }
    
    public function getNumMyFriendRequest()
    {
       return $this->_ci->friends_mod->getNumMyFriendRequest();
    }
    
    public function getNumUnreadMessages()
    {
       return $this->_ci->messages_mod->getNumUnreadMessages();
    }
    
    public function getNumNonReplyPokes()
    {
        return $this->_ci->pokes_mod->getNumNonReplyPokes();
    }
    
    public function getNumViewMyProfile()
    {
      return $this->_ci->users_mod->getNumViewMyProfile();
    }
    
    public function getNumNonViewPresents()
    {
      return $this->_ci->presents_mod->getNumNonViewPresents();
    }
    
    public function getSpotlightUsers()
    {
      return $this->_ci->users_mod->getSpotlightUsers();
    }
}
?>
